<template>
  <div>
    <h1 v-color="color">hello vue</h1>
    <button @click="changeColor">点我 修改颜色</button>
  </div>
</template>

<script>
export default {
  data(){
    return {
      color: 'red'
    }
  },
  methods: {
    changeColor(){
      this.color ="yellow"
    }
  }
}
</script>

<style>

</style>